import Vue from "vue";
import App from "./App.vue";

// Vuesax Component Framework
import Vuesax from "vuesax";
import "material-icons/iconfont/material-icons.css"; //Material Icons
import "vuesax/dist/vuesax.css"; // Vuesax
Vue.use(Vuesax);

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
// Vue.use(ElementUI);
Vue.use(ElementUI, { size: 'small', zIndex: 3000 })

// 引入百度地图
// import BaiduMap from 'vue-baidu-map'
// Vue.use(BaiduMap, {
//     ak: 'j1UfUvVQdkiGpkDZjAuQyvbjkdaWH9KG'
// });

// import axios from "axios";
import api from "./api"; // 导入api接口
Vue.prototype.$api = api; // 将api挂载到vue的原型上

// Theme Configurations
import "../themeConfig.js";

// ACL
import acl from "./acl/acl";

// Globally Registered Components
import "./globalComponents.js";

// Styles: SCSS
import "./assets/scss/main.scss";

// Tailwind
import "@/assets/css/main.css";
import "./validate/validate.js";


// Vue Router
import router from "./router";

// Vuex Store
import store from "./store/store";

// Vuesax Admin Filters
import "./filters/filters";

// Vuejs - Vue wrapper for hammerjs
import { VueHammer } from "vue2-hammer";
Vue.use(VueHammer);

// // PrismJS
import "prismjs";
import "prismjs/themes/prism-tomorrow.css";

import "@/assets/mapbox/mapbox-gl.css";
import "@/assets/mapbox/mapbox-gl-geocoder.css";

// Feather font icon
require("./assets/css/iconfont.css");


Vue.config.productionTip = false;
new Vue({
  router,
  store,
  acl,
  render: h => h(App)
}).$mount("#app");

